package com.myblog.Mapper;

import com.myblog.po.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CommentMapper {

    List<Comment> listCommentByBlogId(Long id);

    /*, Sort.by(Sort.Direction.DESC,"createTime")*/
    List<Comment>  findByBlogIdAndParentComment(Long id);
    List<Comment>  findByBlogIdAndReplyComment (Long id);

    void saveComment(Comment comment);

}
